package com.digital.smartgrow.service.datacenter;

import com.baomidou.mybatisplus.extension.service.IService;
import com.digital.smartgrow.dto.datacenter.TeacherPageDTO;
import com.digital.smartgrow.entity.datacenter.Teacher;
import com.digital.smartgrow.entity.expert.Expert;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiewb
 * @since 2022-04-03
 */
public interface TeacherService extends IService<Teacher> {

    Object getListByPage(TeacherPageDTO teacherPageDTO);

    Teacher getInfo(Integer id);

    Teacher getInfoByUserName(String employeeId);

    /**
     * 教师登录
     * @param teacher
     * @return
     */
    Teacher login(Teacher teacher);

    /**
     * 专家登录
     * @param expert
     * @return
     */
    Teacher login(Expert expert);
}
